package com.ysstech.finance.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ysstech.common.entity.TreeNode;
import com.ysstech.finance.entity.Subject;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lishuangliang
 * @since 2021-03-10
 */
public interface SubjectService extends IService<Subject> {
    /**
     * 查询科目树
     *
     * @return
     * @throws Exception
     */
    public List<TreeNode> querySubjectTree(Subject subject) throws Exception;

    /**
     * 获取所有科目信息。key 是科目编码
     *
     * @return
     * @throws Exception
     */
    public Map<String, Subject> getSubjectMap() throws Exception;
}
